package uniandes.dermatologia.resources.models;

import org.droidpersistence.annotation.Column;
import org.droidpersistence.annotation.ForeignKey;
import org.droidpersistence.annotation.PrimaryKey;
import org.droidpersistence.annotation.Table;

/**
 * 
 * @author Julio
 *
 */
@Table(name = "ANSWER")
public class AnswerModel {

	public AnswerModel() {
		
	}
	
	@PrimaryKey(autoIncrement=true)
	@Column(name = "ID")
	private long id;
	
	@Column(name = "OPTION_ID")
	@ForeignKey(tableReference="OPTION", onDeleteCascade=true, columnReference="ID")
	private long option_id;
	
	@Column(name = "QUESTION_ID")
	@ForeignKey(tableReference="QUESTION", onDeleteCascade=true, columnReference="ID")
	private long question_id;
	
	@Column(name = "ATTEMPT_ID")
	@ForeignKey(tableReference="ATTEMPT", onDeleteCascade=true, columnReference="ID")
	private long attempt_id;

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the option_id
	 */
	public long getOption_id() {
		return option_id;
	}

	/**
	 * @param option_id the option_id to set
	 */
	public void setOption_id(long option_id) {
		this.option_id = option_id;
	}

	/**
	 * @return the question_id
	 */
	public long getQuestion_id() {
		return question_id;
	}

	/**
	 * @param question_id the question_id to set
	 */
	public void setQuestion_id(long question_id) {
		this.question_id = question_id;
	}

	/**
	 * @return the attempt_id
	 */
	public long getAttempt_id() {
		return attempt_id;
	}

	/**
	 * @param attempt_id the attempt_id to set
	 */
	public void setAttempt_id(long attempt_id) {
		this.attempt_id = attempt_id;
	}
	
	

}
